$(".add").click(function () {
    layer.open({
        type: 1,
        title: ['增加地址', 'font-size:14px;color:#000;'],
        closeBtn: 1,
        area: ['704px', '496px'],
        shadeClose: true,
        skin: 'yourclass',
        content: $('#verify')
    });
})
$(function () {
    $('#table').bootstrapTable({
        formatSearch: function () {
            return '请输入姓名或手机号码'
        }
    })
})

function customSearch(data, text) {
    return data.filter(function (row) {
        return row.mobile.indexOf(text) > -1 || row.name.indexOf(text) > -1
    })
}
var $table = $('#table')
var $button = $('#button')
var $insertRow = $('#insertRow')

$(function () {
    $button.click(function () {
        var ids = $.map($table.bootstrapTable('getSelections'), function (row) {
            return row.mobile
        })
        $table.bootstrapTable('remove', {
            field: 'mobile',
            values: ids
        })
    })
})